package com.lianzai.stat.service.impl;

import com.lianzai.stat.dao.StatDao;
import com.lianzai.stat.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class StatServiceImpl implements StatService {

	@Autowired
	private StatDao statDao;

	@Override
	public Map queryCompositeStat(){
		return statDao.queryCompositeStat();
	}

	@Override
	public List<Map> queryParkingStat(){
		return statDao.queryParkingStat();
	}

	@Override
	public List<Map> queryCommunityMapList(){
		return statDao.queryCommunityMapList();
	}

	@Override
	public Map queryUserTotal(){
		return statDao.queryUserTotal();
	}

	@Override
	public void addDeviceNum(int communityId){
		statDao.addDeviceNum(communityId);
	}

	@Override
	public void subDeviceNum(int communityId){
		statDao.subDeviceNum(communityId);
	}

	@Override
	public void addUserPark(Long communityId){
		statDao.addUserPark(communityId);
	}

	@Override
	public void subUserPark(Long communityId){
		statDao.subUserPark(communityId);
	}

	@Override
	public List<Map> queryCommunityFeeByMonth(Map map){
		return statDao.queryCommunityFeeByMonth(map);
	}

	@Override
	public Map queryYearFeeMap(Map map){
		return statDao.queryYearFeeMap(map);
	}

	@Override
	public Map queryMonthFeeMap(Map map){
		return statDao.queryMonthFeeMap(map);
	}

	@Override
	public List<Map> queryFeeByDateAndCommunity(Map map){
		return statDao.queryFeeByDateAndCommunity(map);
	}

	@Override
	public void insertStatFee(Map map){
		statDao.insertStatFee(map);
	}

	@Override
	public void updateStatFee(Map map){
		statDao.updateStatFee(map);
	}

}
